package com.o2opay.car.common.Runner;

import com.o2opay.car.common.socket.SocketApiTemplate;
import com.o2opay.car.common.socket.SocketHandle;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

/**
 * Created by tugou on 2017/12/29.
 */
@Component
public class SocketServiceRunner implements CommandLineRunner {

    @Autowired
    SocketApiTemplate testSocketService;
    @Autowired
    SocketHandle testSocketHandle;

    @Override
    public void run(String... strings) throws Exception {
        testSocketService.run(testSocketHandle);
    }
}
